//----------------------------------*-C++-*----------------------------------//
/*!
 * \file   AngularMesh.i.hh
 * \author Jeremy Roberts
 * \date   06/19/2011
 * \brief  Member definitions of class AngularMesh.
 * \note   Copyright (C) 2011 Jeremy Roberts. Adapted from Denovo.
 */
//---------------------------------------------------------------------------//
// $Rev:: 123                                           $:Rev of last commit
// $Author:: j.alyn.roberts@gmail.com                   $:Author of last commit
// $Date:: 2011-08-25 12:30:43 +0000 (Thu, 25 Aug 2011) $:Date of last commit
//---------------------------------------------------------------------------//

#ifndef ANGULARMESH_I_HH
#define ANGULARMESH_I_HH

namespace slabtran
{

//---------------------------------------------------------------------------//
// INLINE FUNCTIONS
//---------------------------------------------------------------------------//
/*!
 * \brief Get an octant.
 */
template <class D>
inline const Octant<D>& AngularMesh<D>::octant(int octant_number) const
{
    Require (octant_number >= 0);
    Require (octant_number < d_number_octants);
    Ensure  (d_octants[octant_number]);
    return *(d_octants[octant_number]);
}

}

#endif // ANGULARMESH_I_HH

//---------------------------------------------------------------------------//
//              end of AngularMesh.i.hh
//---------------------------------------------------------------------------//
